package net.goutalk.glcs.module.organization.service;

import com.github.yulichang.base.MPJBaseService;
import net.goutalk.glcs.common.page.PageOutput;
import net.goutalk.glcs.module.organization.dto.AddUserDto;
import net.goutalk.glcs.module.organization.dto.UpdateUserDto;
import net.goutalk.glcs.module.organization.dto.WeChatPageDto;
import net.goutalk.glcs.module.organization.entity.User;
import net.goutalk.glcs.module.organization.vo.UserInfoVo;
import net.goutalk.glcs.module.organization.vo.WeChatPageVO;

import java.util.List;

/**
 * <p>
 * 用户 服务类
 * </p>
 *
 * @author tanyujie
 * @since 2022-03-02
 */
public interface IUserService extends MPJBaseService<User> {

    boolean add(AddUserDto dto);

    boolean update(UpdateUserDto dto);

    boolean deleteBatch(List<Long> ids);

    /**
     * 批量获取用户信息
     *
     * @param ids
     * @return 用户信息
     */
    List<UserInfoVo> getUsersInfo(String ids);

    /**
     * 获取微信分页
     * @param dto
     * @return
     */
    PageOutput<WeChatPageVO> getPage(WeChatPageDto dto);
}
